/**
 * Copyright (c) 2018-2028, LookAhead.
 * <p>
 * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.gnu.org/licenses/lgpl.html
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.logistics.util;

/**
 * Token配置常量.
 *
 * @author LookAhead
 */
public interface TokenConstant {

	/**
	 * token 加密钥匙
	 */
	String SIGN_KEY = "lwsxoedcorfvktgbayhnhujmeikdaikfgd";
	/**
	 * 头像
	 */
	String AVATAR = "avatar";
	/**
	 * token key名称
	 */
	String TOKEN = "token";
	/**
	 * token value值前缀
	 */
	String BEARER = "bearer";
	/**
	 * tokenType的value值
	 */
	String ACCESS_TOKEN = "access_token";
	/**
	 * tokenType的value值
	 */
	String REFRESH_TOKEN = "refresh_token";
	/**
	 * token类型
	 */
	String TOKEN_TYPE = "token_type";
	/**
	 * 过期key
	 */
	String EXPIRES_IN = "expires_in";
	/**
	 * 账号
	 */
	String ACCOUNT = "account";
	/**
	 * 用户ID
	 */
	String USER_ID = "user_id";
	/**
	 * 角色ID
	 */
	String ROLE_ID = "role_id";
	/**
	 * 用户名称
	 */
	String USER_NAME = "user_name";
	/**
	 * 真实姓名
	 */
	String REAL_NAME = "real_name";
	/**
	 * 角色名称
	 */
	String ROLE_NAME = "role_name";
	/**
	 * 多租户ID
	 */
	String TENANT_ID = "tenant_id";
	/**
	 * 第三方登录ID，对应sys_user_oauth表
	 */
	String OAUTH_ID = "oauth_id";
	/**
	 * 客户端信息ID，对应sys_client表
	 */
	String CLIENT_ID = "client_id";
	/**
	 * 许可信息key
	 */
	String LICENSE = "license";
	/**
	 * 许可信息
	 */
	String LICENSE_NAME = "powered by lookahead";
	/**
	 * 默认头像
	 */
	String DEFAULT_AVATAR = "";
	/**
	 * 用于截取token前缀
	 */
	Integer AUTH_LENGTH = 7;
	/**
	 * 获取requestId，防止重复提交
	 */
	String REQUEST_ID = "R-Id";
	/**
	 * 学校ID
	 */
	String ENTER_SCHOOL_ID = "enter_school_id";
	/**
	 * 总校ID
	 */
	String ENTER_SCHOOL_PID = "enter_school_pid";
	/**
	 * 学校用户类型 0.总校负责人  1.分校负责人  2.老师、助教  3.销售
	 */
	String ENTER_SCHOOL_USER_TYPE = "enter_school_user_type";

}
